package com.slipper.bpmn.vo;

import java.util.Map;

public class BpmnVO {
    /** 2、暂存 */
    public static final String SUBMIT_FLAG_SAVE_TEMP = "2";
    /** 3、提交 */
    public static final String SUBMIT_FLAG_SUBMIT = "3";
    /** 4、退回 */
    public static final String SUBMIT_FLAG_RETURN = "4";

    private String currEmpId;
    private String currOrgId;
    private String submitFlag;
    private String signatureId;
    private BpmnFlowVO flowData;
    private Map<String, Object> pageData;

    public String getCurrEmpId() {
        return currEmpId;
    }

    public void setCurrEmpId(String currEmpId) {
        this.currEmpId = currEmpId;
    }

    public String getCurrOrgId() {
        return currOrgId;
    }

    public void setCurrOrgId(String currOrgId) {
        this.currOrgId = currOrgId;
    }

    public String getSubmitFlag() {
        return submitFlag;
    }

    public void setSubmitFlag(String submitFlag) {
        this.submitFlag = submitFlag;
    }

    public String getSignatureId() {
        return signatureId;
    }

    public void setSignatureId(String signatureId) {
        this.signatureId = signatureId;
    }

    public BpmnFlowVO getFlowData() {
        return flowData;
    }

    public void setFlowData(BpmnFlowVO flowData) {
        this.flowData = flowData;
    }

    public Map<String, Object> getPageData() {
        return pageData;
    }

    public void setPageData(Map<String, Object> pageData) {
        this.pageData = pageData;
    }

    public boolean isPauseSave() {
        return SUBMIT_FLAG_SAVE_TEMP.equals(this.submitFlag);
    }

    public BpmnVO cloneValue() {
        BpmnVO vo = new BpmnVO();
        vo.currEmpId = this.currEmpId;
        vo.currOrgId = this.currOrgId;
        vo.submitFlag = this.submitFlag;
        vo.signatureId = this.signatureId;
        vo.flowData = this.flowData;
        vo.pageData = this.pageData;
        return vo;
    }
}
